package com.neusoft.neuiotms.dcam.workflow.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.neusoft.neuiotms.dcam.workflow.model.BaofeiSL;

public interface BaofeiSLRepository extends JpaRepository<BaofeiSL, Long> {

    BaofeiSL findByTaskId(String taskId);

    BaofeiSL findByWorkOrderNumAndTaskId(String workOrderNum, String taskId);

    List<BaofeiSL> findByWorkOrderNum(String workOrderNum);

    void deleteByWorkOrderNum(String workOrderNum);

    BaofeiSL findTopByWorkOrderNumOrderByCreateTimeDesc(String workOrderNum);
}
